#ifndef CPLANTA_H
#define CPLANTA_H

#include <vector>

#include "CObjetoAnimado.h"
#include "CArea.h"
#include "CAnimation.h"
#include "CCamera.h"
#include "CFPS.h"
#include "CSurface.h"
#include "CBalaPlanta.h"

//=============================================================================
class CPlanta : public CObjetoAnimado {

	public:
		CPlanta();
		virtual ~CPlanta();

	public:
		virtual bool OnLoad(char* File, int Width, int Height, int MaxFrames, int Index);

		virtual void OnLoop();

	/*	virtual void OnRender(SDL_Surface* Surf_Display);

		virtual void OnCleanup();
*/
		virtual void OnAnimate();



		private:
		long OldTime,OldTimeBala;
		bool TieneQueDisparar;
		bool disparaIzq;
		CBalaPlanta balaplanta;
		void OnDisparar();

		public:
		void SetDireccionDisparo(bool izquierda);
};


//=============================================================================

#endif


